/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mttestclient;

import java.util.*;
import java.util.concurrent.locks.*;

/**
 *
 * @author 0914064 - Ross Aitken
 */
public class SyncServerRequest extends TimerTask{
    
    private ClientModel client;
    private ReentrantLock clientLock;

    // woken up by the timer to cast votes
    SyncServerRequest(ClientModel client, ReentrantLock clientLock) { 

        this.client = client;
        this.clientLock = clientLock;
    }

    @Override
    public void run() { // creates a thread to cast votes
        new ServerRequest(client, clientLock).start();
    }
    
}
